class Add():
    url="http://1.95.48.126:9090/blog/add"
    method="POST"
#登录请求参数
    def add_sucess(self):
        return [
            {
                "title": "postman测试标题",
                "content": "##postman测试博客内容",
                "data":True
            },
            {
                "title": "何以解忧",
                "content": "##唯有暴富",
                "data":True
            },
            {
                "title": "",
                "content": "##postman测试博客内容",
                "data":False
            },
            {
                "title": "postman测试标题",
                "content": "",
                "data": False
            },
            {
                "title": "postman测试标题postman测试标题postman测试标题postman测试标题postman测试标题postman测试标题postman测试标题"\
                         "postman测试标题postman测试标题postman测试标题postman测试标题postman测试标题postman测试标题postman测试标题"\
                         "postman测试标题postman测试标题postman测试标题postman测试标题postman测试标题postman测试标题postman测试标题"\
                        "postman测试标题postman测试标题postman测试标题postman测试标题postman测试标题postman测试标题postman测试标题",
                "content": "##postman测试博客内容",
                "data": False
            },
            {
                "title": "postman测试标题",
                "content": "##postman测试博客内容##postman测试博客内容##postman测试博客内容##postman测试博客内容##postman测试博客内容##postman测试博客内容",
                "data": True
            }
        ]

    sucess_schame={
        "type": "object",
        "properties": {
            "code": {
                "type": "string",
                "enum": ["SUCCESS"]
            },
            "errMsg": {
                "type": "string"
            },
            "data": {
                "type": "boolean",
            }
        },
        "required": ["code", "errMsg", "data"],
        "additionalProperties": False
    }


add_paramenter=Add()